﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManagerSkill.aspx.cs" Inherits="sysadmin_GradeManager_ManagerSkill" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>技能体系管理</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        } 
        function AutoColseAler()
        {
            showFloat();
            setTimeout("ShowNo()",3000);
        }
    </script>

</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" class="titbg_right" width="100%">
            <tr>
                <td class="titbg_left">
                    <asp:Label ID="lbl_InfoTitle_ManagerDownload" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
        
        
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
            <tr>
                <td class="left" style="width: 197px">
                    <!--技能信息-->
                    <asp:Repeater ID="rpt_SkillType" runat="server" OnItemCommand="rpt_SkillType_ItemCommand">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                                <tr>
                                   <th>
                                       &nbsp;<%=GetLanageValueByKey("lab_AddSkill_SkillTypeName", PowerCreator.LMS.Language.LanagetItemType.Page)%></th>
                                    <th>
                                        &nbsp;<%=GetLanageValueByKey("lab_AddSkill_SkillSumScore", PowerCreator.LMS.Language.LanagetItemType.Page)%></th>
                                </tr>
                        </HeaderTemplate>
                         <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkbtn_ShowSkill" runat="server" CommandName="lshowskill"
                                        CommandArgument='<%#Eval("SkillTypeID")%>'><%#Eval("SkillTypeName")%></asp:LinkButton>
                                </td>
                                <td>
                                    <%#Eval("SkillTypeScore")%>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <!-- end 技能信息-->
                </td>
                <td valign="top">
                    <!--操作项-->
                    <!--end 操作项-->
                    <table border="0" cellpadding="0" cellspacing="0" class="btnbg" width="100%">
            <tr>
                <td>
                    <asp:CheckBox ID="chkAll" runat="server" AutoPostBack="True" OnCheckedChanged="chkAll_CheckedChanged"
                        Text="全选/取消" ValidationGroup="gs" />
                    <asp:CheckBox ID="chkCancel" runat="server" AutoPostBack="True" OnCheckedChanged="chkCancel_CheckedChanged"
                        Text="反选" ValidationGroup="gs" />
                    <asp:Button ID="btnAddNew" runat="server" CssClass="inputBotton" OnClick="btnAddNew_Click"
                        Text="" />
                    <asp:Button ID="btn_DelCheck" runat="server" CssClass="inputBotton" OnClick="btn_DelCheck_Click" Text="删除选中" />
                    &nbsp; &nbsp;
                    &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txt_KeyWord" runat="server"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" CssClass="inputBotton" OnClick="btnSearch_Click"
                        Text="" />
                </td>
            </tr>
        </table>
        <asp:Repeater ID="rptDownload" runat="server" OnItemCommand="rptDownload_ItemCommand" OnItemDataBound="rptDownload_ItemDataBound">
            <HeaderTemplate>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th>&nbsp;
                        </th>
                        <th>
                           &nbsp;<%=GetLanageValueByKey("lab_AddSkill_SkillName", PowerCreator.LMS.Language.LanagetItemType.Page)%></th>
                       <th>
                           &nbsp;<%=GetLanageValueByKey("lab_AddSkill_SkillScore", PowerCreator.LMS.Language.LanagetItemType.Page)%></th>
                        <th>
                            &nbsp;<%=GetLanageValueByKey("btn_ManagerQuestion_Work", PowerCreator.LMS.Language.LanagetItemType.Page)%></th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:CheckBox runat="server" ID="Chbox_Check" />
                        <asp:Label ID="lab_DownID" runat="server" Text='<%#Eval("SkillID")%>' Visible="False"></asp:Label>
                    </td>
                    <td>
                        &nbsp; <%#Eval("SkillName")%>
                    </td>
                   
                    <td>
                        <%#Eval("SkillScore")%>
                        &nbsp;
                    </td>
                    <td>
                       &nbsp; <asp:LinkButton ID="lnkbtn_editor" runat="server" CommandName="leditor" CommandArgument='<%#Eval("SkillID")%>'><%=GetLanageValueByKey("btn_ManagerQuestion_Edit", PowerCreator.LMS.Language.LanagetItemType.Page)%></asp:LinkButton>|
                        <asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("SkillID")%>'><%=GetLanageValueByKey("btn_ManagerQuestion_Delete", PowerCreator.LMS.Language.LanagetItemType.Page)%></asp:LinkButton>
                        
                        <asp:Label ID="lbl_msg" runat="server" Text="" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
                </td>
            </tr>
        </table>
        <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
            background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
            left: 0; top: 0; display: none; overflow: hidden;">
        </div>
        <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
            width: 780px; z-index: 1001; position: absolute; display: none; top: 50%; left: 50%;
            margin: -200px 0 0 -400px;">
            <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
                    <tr>
                        <th>
                            &nbsp;</th>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbl_msg_description" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tree-bottom-bg1">
                            &nbsp;<input id="btn_colse" type="button" value='<%=GetLanageValueByKey("btn_Colse", PowerCreator.LMS.Language.LanagetItemType.Page)%>'
                                class="inputBotton2" onclick="ShowNo();" /></td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
